// 评论模块api
import axios from "@/utils/axios.js";

// 获取评论列表
export const getCommentsById = (id, pageindex) => {
  return axios({
    url: `/api/getcomments/${id}?pageindex=${pageindex}`,
  });
};

// 发表评论
export const postCommentById = (id, data) => {
  return axios({
    method: "POST",
    url: `/api/postcomment/${id}`,
    data,
  });
};
